﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Coding
{
    public class Generator
    {
        public T RandomlySelectItem<T>(IList<T> list)
        {
            Random random=new Random();
            int selectedIndex=random.Next(0, list.Count);
            return list[selectedIndex];
        }
    }

}
